Guild Wars Forums - GW Guru
 
 

Go Back   Guild Wars Forums - GW Guru > The Outer Circle > Off-Topic & the Absurd

Notices

Reply
 
Thread Tools Display Modes
Old Dec 02, 2005, 12:31 AM // 00:31   #1
Krytan Explorer
 
benmanhaha's Avatar
 
Join Date: Aug 2005
Location: nowhere!!!
Profession: N/Mo
Advertisement

Disable Ads
Default I need some help with my compiler

At my school, we use microsoft visual c++ to write and compile our programs. In one of our programs we are required to use a string data type. Well when we compile the program, we get an error and it cant be run. In the book, it says that if we get an error, it is because our compiler does not have the bool data type. It tells us that we should include the following in our program and it should be ok.

#ifndef _BOOL_H
#define _BOOL_H

typedef int bool;
const int FALSE = 0;
const int TRUE = 1;

#endif


Now we put this in but we still get an error. I saw on some other thread that some people on here are versed in c++ and i was wondering if anyone can help me out.

Last edited by benmanhaha; Dec 02, 2005 at 12:42 AM // 00:42..
benmanhaha is offline   Reply With Quote
Old Dec 02, 2005, 04:25 AM // 04:25   #2
Wilds Pathfinder
 
Eugaet's Avatar
 
Join Date: Apr 2005
Location: US
Guild: Righteous Apathy [RA]
Default

What's the exact error message?
Eugaet is offline   Reply With Quote
Reply

Share This Forum!  
 
 
           

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 05:03 AM // 05:03.


Powered by: vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
jQuery(document).ready(checkAds()); function checkAds(){if (document.getElementById('adsense')!=undefined){document.write("_gaq.push(['_trackEvent', 'Adblock', 'Unblocked', 'false',,true]);");}else{document.write("